#ifndef BORDERLAYER_H
#define BORDERLAYER_H

#include <QGraphicsItem>
#include <QPainter>
#include "Layer/layer.h"
#include <iostream>

class BorderLayer : public QGraphicsItem
{
public:
    BorderLayer();

    void setLayer(Layer* layer);
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

    QRectF boundingRect() const;

    void refreshPos();

private:
    Layer* layerBorder;
    int width;
    int height;
};

#endif // BORDERLAYER_H
